\name{KeywordWrite}
\alias{KeywordWrite}
\title{Write Keyword}
\usage{
  KeywordWrite(spath, keyword, value, type = "NUMERIC",
    comment = "", env = SetEnv())
}
\arguments{
  \item{spath}{The simulation path. This is the directory
  that holds the GEOtop parameter file and that is passed
  to GEOtop upon execution.}

  \item{keyword}{Name of the GEOtop keyword to be modified
  or appended.}

  \item{value}{Value for keyword to insert. This can be a
  scalar or a vector.}

  \item{type}{Keyword type, either "NUMERIC" (default) or
  "STRING".}

  \item{comment}{Optional comment that is written to the
  first line of the new file}

  \item{env}{List that passes a number of default
  settings.}
}
\description{
  Write keyword into GEOtop parameter file
}
\details{
  This function writes a keyword into a loaded GEOtop
  parameter-file string. If the keyword exists already in
  the parameter-file string, then its value is changed. If
  it does not exist, a new line with the keyword and its
  value are inserted.
}
\examples{
fs <- KeywordWrite("./data", "DtPlotPoint", 1, type = "NUMERIC", env = SetEnv())
}
\author{
  Stephan Gruber <stephan.gruber@carleton.ca>
}

